#include <Wire.h>


void SendHello() {
  Serial.println("master send ");
  Wire.beginTransmission(SLAVE_ADDR);
  Wire.write("hello");
  Wire.endTransmission();
}

void Request() {
  Serial.println("master request ");
  Wire.requestFrom(SLAVE_ADDR, 20);
  delay(10);
  while (Wire.available()) {
    Serial.print((char)Wire.read());
  }
  Serial.println();
}


void master_setup(){
  Wire.begin();
  Serial.begin(57600);
}


void master_loop() {
  SendHello();
  Request();
  
  delay(1000);
}
